<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  <style>
    {% load static %}
    .nav{
      background-image: {% static "images/banner1.jpg" %};
    }
   div{
      background-image:{% static "images/banner1.jpg" %} ;
    }
    #parding{
      padding: 10px;
      padding-top: 10px;
      padding-top: 0px;
    }





  </style>
</head>
<body class="nav">
<nav class="navbar navbar-default navbar-fixed-top" >
  <div class="container-fluid">
    <div class="navbar-header">
      <div class="container">
          <ul class="nav nav-tabs">
            <li><img  style="height: 30px;width: 100px;" alt="Brand" src="{% static "images/logo.png" %}"></li>
            <li role="presentation" class="active"><a href="#">首页</a></li>
            <li role="presentation"><a href="#">公司介绍</a></li>
            <li role="presentation"><a href="#">我要应聘</a></li>
            <li role="presentation"><a href="#">联系我们</a></li>
            {% if request.session.is_login %}
              <li role="presentation"><a href="#">我的</a></li>
              <li role="presentation">欢迎，{{request.session.username}}&nbsp;回家</li>
              <li role="presentation"><a href="/logout/">退出</a></li>
              {% else %}
                <li role="presentation" style="float: right"><a id="parding" href="/login/"> <button  type="button" class="btn btn-default navbar-btn" >登录</button></a></li>
                <li role="presentation" style="float: right"><a id="parding" href="/register/"> <button  type="button" class="btn btn-default navbar-btn" >注册</button></a></li>
            {% endif %}
          </ul>
      </div>
    </div>
  </div>
</nav>
<div>
  <img src="{% static "images/banner1.jpg" %}">

</div>
</body>
</html>